package com.lp;

import com.lp.po.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author shkstart
 * @create 2021-02-03 19:21
 */
public class SpringTest01 {

    @Test
    public void test1(){
        String resources= "applicationContext-spring.xml";
        ApplicationContext ac=new ClassPathXmlApplicationContext(resources);
        Student student=(Student) ac.getBean("student");
        System.out.println(student);
    }
}
